package com.orhon.smartcampus.modules.systemctl.mm;

import com.orhon.smartcampus.modules.base.mm.LangMapper;
import com.orhon.smartcampus.modules.systemctl.entity.Schoolsettings;
import com.orhon.smartcampus.modules.systemctl.entity.VersionManagement;
import com.orhon.smartcampus.modules.systemctl.gqlModel.GQLSchoolSettingss;
import com.orhon.smartcampus.modules.systemctl.gqlModel.GQLVersionManagement;
import org.mapstruct.InheritConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(
        uses = {
                LangMapper.class
        }
)
public interface VersionManagementMapper {

    VersionManagementMapper MAPPER = Mappers.getMapper(VersionManagementMapper.class);

    GQLVersionManagement toVersionManagement(VersionManagement management);

    @InheritConfiguration(name = "toVersionManagement")
    List<GQLSchoolSettingss> toVersionManagementList(List<Schoolsettings> entities);


}
